package com.eastcom.providor.service.impl;

import java.util.List;

import com.eastcom.bm.atom.Atom_Type;
import com.eastcom.providor.dao.IKpiTypeDao;
import com.eastcom.providor.service.BaseService;
import com.eastcom.providor.service.IKpiTypeService;

public class KpiTypeService extends BaseService implements IKpiTypeService {

	private IKpiTypeDao kpiTypeDao;
	
	public IKpiTypeDao getKpiTypeDao() {
		return kpiTypeDao;
	}

	public void setKpiTypeDao(IKpiTypeDao kpiTypeDao) {
		this.kpiTypeDao = kpiTypeDao;
	}

	public List<Atom_Type> selectTypeByParentId(String parentId) {
        try{
        	return kpiTypeDao.selectTypeByParentId(parentId);
        }
        catch(Exception e){
        	log.error("IKpiTypeService selectTypeByParentId error", e);
        }
		return null;
	}

	public List<Atom_Type> selectTypeNoParent() {
        try{
        	return kpiTypeDao.selectTypeNoParent();
        }
        catch(Exception e){
        	log.error("IKpiTypeService selectTypeByParentId error", e);
        }
		return null;
	}

}
